package com.company.cloud.club.modules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.company.cloud.club.modules.db.domain.ClubMember;
import com.company.cloud.club.modules.db.domain.UserInfo;

import java.util.List;

/**
 * *****************************************************************************
 * <p>
 * 功能名           ：com.qxzychina.vms.service
 * 系统名           ：
 * <p>
 * *****************************************************************************
 * Modification History
 * <p>
 * Date        Name                    Reason for Change
 * ----------  ----------------------  -----------------------------------------
 * 2020/7/18     zhangxu                 Created
 */
public interface ClubMemberService extends IService<ClubMember> {

    boolean deleteClubMember(String clubId, String type);

    List<ClubMember> selectByClubId(String clubId);

    List<ClubMember> pageByClubId(String clubId, Integer begin, Integer pageSize);

    Integer countByClubId(String clubId);

    Boolean isColled(String clubId, Integer currentUserId);

    ClubMember selectByClubIdAndUserId(String resId, Integer userId);

    void removeMember(String resId, Integer currentUserId);

    List<ClubMember> selectByUserId(Integer userId);

    List<ClubMember> pageByUserId(Integer uid, Integer begin, Integer pageSize);

    int countByUserId(Integer uid);

}
